import request from '@/utils/request'

// 查询教职工列表
export function listInfoTeacher(query) {
  return request({
    url: '/info/teacher/list',
    method: 'get',
    params: query
  })
}

// 查询教职工详细
export function getInfoTeacher(id) {
  return request({
    url: '/info/teacher/' + id,
    method: 'get'
  })
}

// 新增教职工
export function addInfoTeacher(data) {
  return request({
    url: '/info/teacher',
    method: 'post',
    data: data
  })
}

// 修改教职工
export function updateInfoTeacher(data) {
  return request({
    url: '/info/teacher',
    method: 'put',
    data: data
  })
}

// 删除教职工
export function delInfoTeacher(id) {
  return request({
    url: '/info/teacher/' + id,
    method: 'delete'
  })
}

// 导出教职工
export function exportInfoTeacher(query) {
  return request({
    url: '/info/teacher/export',
    method: 'get',
    params: query
  })
}